> ASP.NET RepeatDirection 属性

ASP.NET RepeatDirection 属性

定义和用法

RepeatDirection 属性用于获取或设置 RadioButtonList 中的项目是垂直显示还是水平显示

语法

<asp:RadioButtonList RepeatDirection="mode" runat="server">
some content
</asp:RadioButtonList >
属性 描述
mode

规定 RadioButtonList 中项目的布局方向。

可能的值:

  • Horizontal - 项目水平显示
  • Vertical - 默认。项目垂直显示。

实例

下面的例子设置了 RadioButtonList 控件的 RepeatDirection:

<form runat="server">
<asp:RadioButtonList id="rb1"
runat="server" RepeatDirection="Horizontal">

Some content

</asp:RadioButtonList>
</form>

实例

设置 RadioButtonList 控件的 RepeatDirection
参考手册

W3c0.com 提供的内容仅用于培训。我们不保证内容的正确性。通过使用本站内容随之而来的风险与本站无关。W3c0 简体中文版的所有内容仅供测试,对任何法律问题及风险不承担任何责任。 当使用本站时,代表您已接受了本站的使用条款和隐私条款。版权所有,保留一切权利。 鲁ICP备15022115号